<template>
  <el-button type="warning" @click="Logout" size="mini" :round="true" icon="el-icon-close" class="exitButton" style="position: absolute">退出登录</el-button>
</template>

<script>
export default {
  name: "logout",
  methods:{
    Logout() {
      var _this = this;
      _this.$confirm('确认退出吗？', '提示', {}).then(() => {
        window.location.href = '/'
      }).catch(() => {})
    },
  }
}
</script>

<style scoped>
.exitButton {
  /*margin-left: 1000px;*/
  /*border-left: 2000px;*/
  right: 50px;
  top: 50px;

}
</style>
